//群发或单发自定义TIM消息格式
export type CustomMessage = {
  data: string; //数据主体，必须是json格式字符串
  description?: number; //描述
  extension?: number; //扩展字段
}

export type CustomMsgParam = {
  cmd: string;   //消息命令类型
  data?: Record<string, any>; //自定义消息体
}

export type TuwenText = {
  cmd: string;   //消息命令类型
  text: string; //图文文本内容
}

//发起连麦邀请的参数
export type LinkRequest = {
  from: string; //发起连麦邀请的userId
  to: string; //连麦邀请的对象
  fromNick?: string; //邀请人昵称
  fromAvatar?: string; //邀请人头像
  timestamp: number;  //经过服务器校正的时间戳
}

export type TwMsgRevokeReq = {
  sequence: number; //图文消息sequence
  groupId: string; //群id
}